//package com.example.easyexcel.excelOld.controller;
//
//import com.example.easyexcel.excelOld.config.CommentsWriteHandler;
//import com.example.easyexcel.excelOld.config.ExcelListener;
//import com.example.easyexcel.excelOld.domain.*;
//import com.example.easyexcel.excelOld.service.accountService;
//import com.example.easyexcel.excelOld.util.ExcelUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//import java.util.List;
//
//@RestController
//@RequestMapping("/account")
//public class accountController {
//
//    @Autowired
//    accountService accountService;
////    @Autowired
////    accountService accountService;
//    @PostMapping("/insert")
//    public List<AccountEntity> getaccount(@RequestBody AccountDto dto) {
//        List<AccountEntity> list = accountService.getList(dto);
//        return list;
//
//    }
//
//    @GetMapping("/export")
//    public void export(HttpServletResponse response) throws Exception {
//        ExcelUtil.writeExcel(response,null,"用户信息","用户信息", ExportVo.class);
//    }
//
//    @GetMapping(value = "importExcel")
//    public void importExcel(
//            @RequestParam(value = "file", required = true) MultipartFile file, HttpServletResponse response
//    ) throws Exception {
//        accountService.importExcel(file);
//    }
//
//    @GetMapping("downloadErrorExcel")
//    public void downloadErrorExcel(
//            HttpServletResponse response,
//            @RequestParam(value = "uuid", required = true) String uuid
//    ) throws IOException {
//        accountService.downloadErrorExcelj(response,uuid);
//    }
//
//    @GetMapping("/queryRecord")
//    public RecordVo importRecord(String id) throws Exception {
//        RecordVo entity = accountService.getImportRecord(id);
//        return entity;
//    }
//
//    @GetMapping("/queryRecordList")
//    public List<RecordVo> importRecordList() throws Exception {
//        List<RecordVo> recordVos = accountService.getRecordList();
//        return recordVos;
//    }
//}
